
<%- decision = @composite_soa.implementation_doc(component.name) -%>
  
  
<P>
  <%= simple_format component.description %>
</P>

<P><B>Activities detail:</B></P>

<TABLE WIDTH=80% CELLPADDING=7 CELLSPACING=0>
	<COL WIDTH=154>
	<COL WIDTH=65>
	<COL WIDTH=120>
	<COL WIDTH=130>
	<COL WIDTH=66>
	<COL WIDTH=66>
	<COL WIDTH=179>
	<THEAD>
		<TR VALIGN=TOP>
			<TD BGCOLOR="#4f81bd" STYLE="border: 1px solid #00000a; padding: 0cm 0.19cm">
				<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0cm; margin-top: 0cm">
				<FONT FACE="Book Antiqua, serif"><FONT COLOR="#ffffff"><B>Name</B></FONT></FONT></P>
			</TD>
			<TD BGCOLOR="#4f81bd" STYLE="border: 1px solid #00000a; padding: 0cm 0.19cm">
				<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0cm; margin-top: 0cm">
				<FONT FACE="Book Antiqua, serif"><FONT COLOR="#ffffff"><B>Type</B></FONT></FONT></P>
			</TD>
			<TD BGCOLOR="#4f81bd" STYLE="border: 1px solid #00000a; padding: 0cm 0.19cm">
				<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0cm; margin-top: 0cm">
				<FONT FACE="Book Antiqua, serif"><FONT COLOR="#ffffff"><B>Reference</B></FONT></FONT></P>
			</TD>
			<TD BGCOLOR="#4f81bd" STYLE="border: 1px solid #00000a; padding: 0cm 0.19cm">
				<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0cm; margin-top: 0cm">
				<FONT FACE="Book Antiqua, serif"><FONT COLOR="#ffffff"><B>Operation</B></FONT></FONT></P>
			</TD>
			<TD BGCOLOR="#4f81bd" STYLE="border: 1px solid #00000a; padding: 0cm 0.19cm">
				<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0cm; margin-top: 0cm">
				<FONT FACE="Book Antiqua, serif"><FONT COLOR="#ffffff"><B>Input</B></FONT></FONT></P>
			</TD>
			<TD BGCOLOR="#4f81bd" STYLE="border: 1px solid #00000a; padding: 0cm 0.19cm">
				<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0cm; margin-top: 0cm">
				<FONT FACE="Book Antiqua, serif"><FONT COLOR="#ffffff"><B>Output</B></FONT></FONT></P>
			</TD>
			<TD BGCOLOR="#4f81bd" STYLE="border: 1px solid #00000a; padding: 0cm 0.19cm">
				<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0cm; margin-top: 0cm">
				<FONT FACE="Book Antiqua, serif"><FONT COLOR="#ffffff"><B>Description</B></FONT></FONT></P>
			</TD>
		</TR>
	</THEAD>
	<TBODY>
	     <%- decision.activities.each do |activity| -%>
		<TR VALIGN=TOP>
			<TD BGCOLOR="#ffffff" STYLE="border: 1px solid #00000a; padding: 0cm 0.19cm">
				<P CLASS="western" ALIGN=CENTER STYLE="margin-left: 0cm; margin-top: 0cm">
				<FONT FACE="Book Antiqua, serif"><B>
 <%= activity.name %>
				</B></FONT></P>
			</TD>
			<TD BGCOLOR="#ffffff" STYLE="border: 1px solid #00000a; padding: 0cm 0.19cm">
				<P CLASS="western" ALIGN=LEFT STYLE="margin-left: 0cm; margin-top: 0cm">
				<FONT FACE="Book Antiqua, serif">
<%= activity.type %>
				  </FONT></P>
			</TD>
			<TD BGCOLOR="#ffffff" STYLE="border: 1px solid #00000a; padding: 0cm 0.19cm">
				<P CLASS="western" ALIGN=LEFT STYLE="margin-left: 0cm; margin-top: 0cm">
<%= activity.reference %>
				</P>
			</TD>
			<TD BGCOLOR="#ffffff" STYLE="border: 1px solid #00000a; padding: 0cm 0.19cm">
				<P CLASS="western" ALIGN=LEFT STYLE="margin-left: 0cm; margin-top: 0cm">
<%= activity.operation %>
				</P>
			</TD>
			<TD BGCOLOR="#ffffff" STYLE="border: 1px solid #00000a; padding: 0cm 0.19cm">
<%- if !activity.input.nil? -%>
<%- activity.input.each do |var| -%>
				<P CLASS="western" ALIGN=LEFT STYLE="margin-left: 0cm"><FONT FACE="Book Antiqua, serif"><I>
<%- begin -%>
<%= var.qname + "::" + var.name %>
<%- rescue Exception => e  -%>
<%= "Error: " %>
<%= e %>
<%= var %>
<%- end -%>
				</I></FONT></P>
<%- end -%>
<%- end -%>
			</TD>
			<TD BGCOLOR="#ffffff" STYLE="border: 1px solid #00000a; padding: 0cm 0.19cm">
<%- if !activity.output.nil? -%>
<%- activity.output.each do |var| -%>
				<P CLASS="western" ALIGN=LEFT STYLE="margin-left: 0cm"><FONT FACE="Book Antiqua, serif"><I>
<%- begin -%>
<%= var.qname + "::" + var.name %>
<%- rescue Exception => e  -%>
<%= "Error: " %>
<%= e %>
<%= var %>
<%- end -%>
				 </I></FONT></P>
<%- end -%>
<%- end -%>
			</TD>
			<TD BGCOLOR="#ffffff" STYLE="border: 1px solid #00000a; padding: 0cm 0.19cm">
				<P CLASS="western" ALIGN=LEFT STYLE="margin-left: 0cm"><FONT FACE="Book Antiqua, serif">
<%= activity.description %>
				  </FONT></P>
			</TD>
		</TR>

	    <%- end -%>
	</TBODY>
</TABLE>